package com.huisheng.mapper;

import com.huisheng.pojo.Role;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Authther: mrwu
 * @date:2021/3/6-03
 * @Description:com.huisheng.mapper
 */
public interface RoleMapper {
    @Select("select * from role r user_role ur where r.id=ur.roleid and ur.userid = #{uid}")
    public List<Role> findRolesByUid(int uid);

}
